/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import DAOInterface.DAOConnection;
import ModelInterface.IPlaceHasItem;
import java.util.ArrayList;

/**
 *
 * @author Fabian
 */
public class PlaceHasItem implements IPlaceHasItem {
  
    private DAOConnection myDAOsource;
    private DAOConnection myDAOtarget;
    private ArrayList columnas;

    /**
     * 
     * @param conexionS
     */
    @Override
    public void setDAOSourceConnection(DAOConnection conexionS) {
        this.myDAOsource = conexionS;
    }

    /**
     * 
     * @param conexionT
     */
    @Override
    public void setDAOTargetConnection(DAOConnection conexionT) {
        myDAOtarget = conexionT;
    }

    @Override
    public void createPlaceHasItem(ArrayList parametros) {
        columnas = new ArrayList();
        columnas.add("PLACE_ID");
        columnas.add("ITEM_ID");
        this.myDAOtarget.createElement("place_item",columnas, parametros);
    }
    
    @Override
    public String getLastQuery() {
        return this.myDAOtarget.getLastQuery();
    }
    
    
}
